package com.service;

import com.pojo.Account;
import com.pojo.RightClassTwo;
import com.pojo.Role;
import jdk.nashorn.internal.runtime.ListAdapter;

import java.util.List;

public interface AccountService {

    List<RightClassTwo> showRightByRightSuperId(Long id,Long superId);

    boolean deleteAccountByUserCode(Long userCode);

    Account findAccountByUserCode(Long userCode);

    List<Role> findRoleList(Long roleId,List<Role> list);

    boolean updateAccount(Account account);

    boolean updatePassWord(Account account);

    boolean findAccountByUserName(String userName);

    boolean addAccount(Account account);

    List<Account> findFuzzySearch(Long roleId,Account account);

    List<Account> findAccountListByFuzzy_1(Long roleId,Account account);

    List<Account> findAccountListByFuzzy_2(Long roleId,Account account);
}
